﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKSparseDistance.ModelLayer;
using YJKInspectModelFunc.ControlLayer;
using YJKInspectModelFunc.ModelLayer;

namespace YJKSparseDistance.ControlLayer
{
	public class AreaGeter
	{
		public List<AreaPacker_EvacuationDistance> GetAreas(Autodesk.Revit.DB.Document useDoc, List<Level> useLevels, List<ICloseCurveAnalays> lstInputCloseCurveAnalys, List<Phase> lstUsePhase)
		{
			return this.m_thisBaseFinder.GetAllAreaPackersInDocument(useDoc, useLevels, lstInputCloseCurveAnalys, lstUsePhase, new List<BuiltInCategory>
			{
				(BuiltInCategory)(-2000120),
				(BuiltInCategory)(-2000898),
				(BuiltInCategory)(-2000126)
			}, false);
		}

		private BaseAreaFinder<AreaPacker_EvacuationDistance, RoomPacker_EvacuationDistance, BountarySegmentPacker_EvacuationDistance, DoorPacker_EvacuationDistance, ObstructurePacker_EvacuationDistance> m_thisBaseFinder = new BaseAreaFinder<AreaPacker_EvacuationDistance, RoomPacker_EvacuationDistance, BountarySegmentPacker_EvacuationDistance, DoorPacker_EvacuationDistance, ObstructurePacker_EvacuationDistance>();
	}
}
